package com.ccsoft.zknote.pojo;
import java.io.Serializable;
import java.math.BigDecimal;
/**
 * 由 chanchaw 创建于 2023-8-10 15:22:17
 * 加班主表
 */
public class OvertimeMain implements Serializable {
    public OvertimeMain() {}
    private static final long serialVersionUID = 1L;

    private Integer id;//自增主键
    private String goodsName;//长度100的字符串
    private BigDecimal qty;//16,4的浮点型

    public Integer getId(){return this.id;}
    public void setId(Integer id){this.id = id;}
    public String getGoodsName(){return this.goodsName;}
    public void setGoodsName(String goodsName){this.goodsName = goodsName;}
    public BigDecimal getQty(){return this.qty;}
    public void setQty(BigDecimal qty){this.qty = qty;}


    @Override
    public String toString() {
        return "OvertimeMain{" +
        ",id='" + id + '\'' +
        ",goodsName='" + goodsName + '\'' +
        ",qty='" + qty + '\'' +
        '}';
    }

    public static class Builder{
        private Integer id;
        private String goodsName;
        private BigDecimal qty;

        public Builder id(Integer id){this.id = id;return this;}
        public Builder goodsName(String goodsName){this.goodsName = goodsName;return this;}
        public Builder qty(BigDecimal qty){this.qty = qty;return this;}
        public OvertimeMain build(){
            return new OvertimeMain(this);
        }
    }

    public static Builder builder(){return new Builder();}
    public OvertimeMain(Builder builder){
        this.id = builder.id;
        this.goodsName = builder.goodsName;
        this.qty = builder.qty;
    }

    /**
     * 自定义代码请写在此处之后
     */
}
